/* 行内code */
:not(pre)>code {
  color: var(--define-color-accent-16) !important;
  font-weight: bold;
  overflow: auto;
  background-color: transparent !important;
}

/* 代码块 */
:is(.markdown-preview-view, .markdown-rendered) pre code {
  white-space: pre !important;
}

:is(.markdown-preview-view, .markdown-rendered) pre {
  margin-left: var(--define-margin-left);
  margin-bottom: 10px;
  background-color: var(--define-color-accent-1);
  border-radius: 5px;
}


/* 代码语言 */
body:not(.remove-language-type) pre::before {
  content: "code";
  opacity: 1;
  transition: opacity 2s;
}


body:not(.remove-language-type) pre::before {
  font-family: var(--font-default);
  font-size: 0.85em;
  font-weight: 600;
  color: #95a3b5;
  opacity: 0.5;
  position: absolute;
  right: 0.5em;
  top: 0.05em;
}

body:not(.remove-language-type) pre[class~='language-html']::before {
  content: "html";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-css']::before {
  content: "css";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-js']::before {
  content: "JavaScript";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-node']::before {
  content: "node";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-ts']::before {
  content: "TypeScript";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-vue']::before {
  content: "Vue";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-react']::before {
  content: "React";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-ahk']::before {
  content: "ahk";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-python']::before {
  content: "python";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-c++']::before {
  content: "c++";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-Java']::before {
  content: "Java";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-linux']::before {
  content: "linux";
  opacity: 1;
}

body:not(.remove-language-type) pre[class~='language-git']::before {
  content: "git";
  opacity: 1;
}

/* 语言标识淡出 */
body:not(.remove-language-type) pre:hover::before {
  opacity: 0;
}

/*复制按钮  */
.markdown-rendered pre>button.copy-code-button {
  opacity: 0;
  width: 50px;
  height: 30px;
  transition: opacity 2s;
}

.markdown-rendered pre>button.copy-code-button:hover {
  opacity: 1;
}